function v=f5_getValueAsF3(data, k, n)
    if nargin ~= 3
        error 'number of arguments must be 3: v = f5_getValueAsF3(data, k, n)'
    end
    N = size(data,2);
    if N ~= n
        error 'size(data,2) != n'
    end
    v = uint8(zeros(1,k));
    for i = 1:n
        for j = 1:k
            if bitget(uint16(i), j) ~= 0
                v(1,j) = bitxor(v(1,j), mod(data(1,i),2));
            end
        end
    end
end
